<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
    <title>Document</title>
</head>
<body>
<div id="app">
    <div v-bind:name="prop.name" v-bind:age="prop.age" v-bind:sex="prop.sex">{{msg}}</div>
    <!-- v-bind批量绑定 直接给prop对象展开 -->
    <div v-bind="prop">{{msg}}</div>
</div>
    <script>
        const vm = new Vue({
            data(){
                return{
                    msg:"hello",
                    prop:{
                        name:"lisi",
                        age:"12",
                        sex:"nan"
                    }
                }
            }
        }).$mount("#app")
    </script>
</body>
</html>